package top.lingkang.finalpool;

public class FinalPoolConfig {

    private String username, password, url, driver;

    //最大连接数 默认10
    private int maxConnectionNumber;
    //链接超时数 /秒
    private int loginOutTime;
    //最小空闲链接 默认1
    private int minIdle;
    //链接存活时间 /毫秒 默认30分钟
    private long survivalTime;
    // 初始化查询 mysql: select 'x'
    private String initSelect;

    public String getInitSelect() {
        return initSelect;
    }

    public void setInitSelect(String initSelect) {
        this.initSelect = initSelect;
    }

    public int getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(int minIdle) {
        this.minIdle = minIdle;
    }

    public long getSurvivalTime() {
        return survivalTime;
    }

    public void setSurvivalTime(long survivalTime) {
        this.survivalTime = survivalTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public int getMaxConnectionNumber() {
        return maxConnectionNumber;
    }

    public void setMaxConnectionNumber(int maxConnectionNumber) {
        this.maxConnectionNumber = maxConnectionNumber;
    }

    public int getLoginOutTime() {
        return loginOutTime;
    }

    public void setLoginOutTime(int loginOutTime) {
        this.loginOutTime = loginOutTime;
    }
}
